package zFactory;

import pUNB.PUNB;
import tEDF_LL73.TEDF_LL73;
import tEDF_LL73.TEDF_LL73Factory;
import genArchi.Node;

public class NodeLiu73a03 implements NodeInterface {

	/**
	 * Attributes
	 */
	private PUNB processorUtilisation;
	private boolean enableCreate;
	/**
	 * Constructor
	 */
	public NodeLiu73a03(PUNB processorUtilisation, boolean enableCreate) 
	{
		this.processorUtilisation = processorUtilisation;
		this.enableCreate = enableCreate;
	}
	
	@Override
	public Node createNode() 
	{
		/**/
		TEDF_LL73 tech = TEDF_LL73Factory.eINSTANCE.createTEDF_LL73();
		
		/**/
		tech.setPU(this.processorUtilisation);
		
		/**/
		return tech;
	}

	@Override
	public String getNodeName() 
	{
		return "tEDF_LL73.impl.TEDF_LL73Impl";
	}

	@Override
	public void update(Node node) 
	{
		TEDF_LL73 tech = (TEDF_LL73)node;
		
		/**/
		if(this.processorUtilisation != null) tech.setPU(this.processorUtilisation);
	}

	@Override
	public boolean isEnable() 
	{
		return this.enableCreate;
	}

}
